<?php
    echo $session->flash('auth');
    echo $form->create('User', array('action' => 'login'));
    echo $form->input('username');
    echo $form->input('password');
    echo $form->input('remember_me', array('label' => 'Remember Me', 'type' => 'checkbox')); 
    echo $form->end('Login');
    
	$uid=$this->Session->read('uid');
	if(!empty($uid)){
		echo $this->Html->link('Logout',array('controller'=>'users','action'=>'logout'));
	} else {
		echo $this->Html->link('Login using Facebook',array('controller'=>'users','action'=>'fblogin'));
	}

?>
